import wyRequest from "@/utils/wyRequest"; 

// 实时搜索接口
export function reqGetRealTime(keywordPrefix:any) {
  return wyRequest.post('/xhr/search/searchAutoComplete.json',{keywordPrefix},{headers:{'Content-Type':'application/x-www-form-urlencoded; charset=UTF-8'}})
}

// 默认关键字和热门关键字接口
export function reqGetInitData() {
  return wyRequest.post('/xhr/search/init.json')
}

// 搜索商品详情
export function reqSearchDetail(value:string) {
  return wyRequest.get(`/xhr/search/search.json?__timestamp=1630133434953&needPopWindow=true&searchWordSource=7&stillSearch=false&_stat_search=autoComplete&itemId=0&size=40&upperPrice=-1&floorPrice=-1&matchType=0&categoryId=0&descSorted=false&sortType=0&keyword=${value}`)
}